package com.hua.yuan.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.hua.yuan.BaseFragment;
import com.hua.yuan.R;
import com.hua.yuan.base.ITabFragment;

import cm.hua.yuan.common.utils.AppContextManager;

/**
 * Created by huangyang on 2018/5/8.
 * 商城的fragment
 */

public class ShopFragment extends BaseFragment implements ITabFragment  {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = LayoutInflater.from(getContext()).inflate(R.layout.fragment_shop, null);
        initView(view);
        return view;
    }


    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initData();

    }

    private void initView(View view) {

    }


    private void initData() {


    }

    @Override
    public String getTabName() {
        return AppContextManager.getInstance().getContext().getString(R.string.shop);
    }

    @Override
    public int getDrawableId() {
        return R.mipmap.main_shop_unselect;
    }

    @Override
    public int getDrawableSelectId() {
        return R.mipmap.main_shop_select;
    }

    @Override
    public Fragment getTabFragment() {
        return this;
    }
}
